import Antd from 'ant-design-vue';
// 导入图标库
import * as Icons from "@ant-design/icons-vue";
import {App} from "vue";

export function setupAntDesign(app:App<Element>){
    app.use(Antd);
    // 开始使用全局图标
    const icons: any = Icons;
    for (const i in icons) {
        // 循环注册组件
        app.component(i, icons[i]);
    }
}
